LEGION Model Builder Help

Creating Entity Colour Schemes

Although Entity Types are assigned colours during the model building phase of a LEGION project, you can create additional Colour Schemes, which you can apply to Entities when playing back a simulation or recording an ‘avi’ file. You can create these by applying advanced filters to Entity attributes in order to highlight Entities pursuing certain objectives or experiencing certain conditions.

Creating a bespoke Colour Scheme

This section describes how to create your own Colour Scheme and then how to apply filters to each colour. The task is broken down into two procedures; the first describes how to create colours, the second how to make them meaningful by applying filters.

To create the colours for a new Colour Scheme:

  1. Select Analysis > Entity Colour Schemes.
  2. Click on the Colours tab.
  3. For each colour you wish to add to the scheme, click the Add button once.

    New colours with default names are added, under the headings Name and Colour.

  4. To change the default name of a colour, double-click to select it and type a new name in its place and press Enter. Repeat this step for as many names as you want to change.
  5. To change the default colour, double-click on the colour to display a drop-down palette of optional colours.
  6. Select a colour from the palette and then click outside of the coloured box to apply the new colour. Repeat this step for as many colours as you want to define.
  7. If you want to add extra colours, remove colours or move them up or down in the list, highlight the relevant colour or colours and click the Add, Remove, Up, or Down buttons.

    See the next procedure.

To apply filters to colours:

  1. Click on the Filters tab.
  2. In the Available Entity colours box, highlight one of the colours you just added. Notice the four control boxes (plus Add button) beneath the Available Entity colours.

    These enable you to define a bespoke filtering criterion to apply to a highlighted colour.

  3. Set up a filter by either typing the conditions directly into the space below the control boxes or by selecting options from their drop-down menus. Reading left to right:
    • Leave blank or select Not.
    • Select an activity, metric or information type from the second menu (for example, Activity, Density, Entity ID, etc.).
    • Select equals (=), less than (<) or greater than (>).
    • Depending on your selections so far, select an item from this menu or enter a specific value if required (for example, a density level).
  4. Click Add to verify the logic of your selections and to add them to the list of filters for that colour.

    If your criterion contains a logical error, a message is displayed beneath the list in red, for example. You must correct any errors for your criterion to be saved.

  5. Repeat step 3 to add more criteria to either the same colour or a new colour from your range.
  6. Click Apply to save your changes and OK to exit.

    Colour Schemes are listed on the 'Data' tab of the Model Builder's Object Directory.

    Note: Please note that using colour schemes when playing back simulations can slow down performance.